﻿@model Yglab.Models.Gui_SubjectsSciences

<div class="row">
<div class="span5 offset2">

    @using (Html.BeginForm("AddSubject", "Admin", FormMethod.Post, new { @class = "form-inline"}) ){
    
        @Html.TextBox("Name", "", new { @placeholder = "Konu kategorisi giriniz." })
        
        <button type="submit" class="btn">Ekle</button>
    }

    <table class="table table-condensed table-hover">
        @*<thead> <tr> <th>Domain</th> <th>Domain işlemler</th> <th>URL işlemler</th> <th>URL</th> </tr> </thead>*@
        <tbody>
            @foreach (Yglab.Models.Subject subject in Model.Subjects)
            {
            <tr>
                @{ 
                    //string cls1 = res.isSource == 1 ? "muted" : "text-error";
                    //string cls2 = res.isCrawled == 1 ? "muted" : "text-error";
                }
                @*<td class="@cls1"> @res.domain </td>*@
                <td> @subject.Name </td>
                <td> @Html.ActionLink("Sil", "DeleteSubject", "Admin", new { Id = subject.Id }, null) </td>
            </tr>
            }
        </tbody>
    </table>

</div>
<div class="span5 offset2">

    @using (Html.BeginForm("AddScience", "Admin", FormMethod.Post, new { @class = "form-inline"}) ){
    
        @Html.TextBox("Name", "", new { @placeholder = "Bilim dalı giriniz." })
        
        <button type="submit" class="btn">Ekle</button>
    }

    <table class="table table-condensed table-hover">
        @*<thead> <tr> <th>Domain</th> <th>Domain işlemler</th> <th>URL işlemler</th> <th>URL</th> </tr> </thead>*@
        <tbody>
            @foreach (Yglab.Models.Science science in Model.Sciences)
            {
            <tr>
                @{ 
                    //string cls1 = res.isSource == 1 ? "muted" : "text-error";
                    //string cls2 = res.isCrawled == 1 ? "muted" : "text-error";
                }
                @*<td class="@cls1"> @res.domain </td>*@
                <td> @science.Name </td>
                <td> @Html.ActionLink("Sil", "DeleteScience", "Admin", new { Id = science.Id }, null) </td>
            </tr>
            }
        </tbody>
    </table>

</div>
</div>